
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    Teacherislogin:JSON.parse(sessionStorage.getItem('tphone')),
    Studentislogin:JSON.parse(sessionStorage.getItem('sphone')),
    dialogVisibleLogin: false,
    dialogVisibleRegister: false,
    dialogVisible: false,
  },
  getters: {
  },
  mutations: {
    ShowLogin(state,bl){
      state.dialogVisibleLogin = bl
    },
    CloseLogin(state,bl){
      state.dialogVisibleLogin = bl
    },
    ShowRegister(state,bl){
      state.dialogVisibleRegister = bl
    },
    CloseRegister(state,bl){
      state.dialogVisibleRegister = bl
    },
    ShowDialog(state,bl){
      state.dialogVisible = bl
    },
    CloseDialog(state,bl){
      state.dialogVisible = bl
    },
  },
  actions: {
  },
  modules: {
  }
})
